package com.niiwoo.activity.stage.enums.cashactivity;

import lombok.Getter;

@Getter
public enum ActivityUserTypeEnum {

    WHITE_USER((byte)1,"白名单"),//白名单
    FORBIDDEN_USER((byte)2,"限制参与名单"),//限制参与名单
    FORBIDDEN_AWARD((byte)3,"限制发奖名单"),//限制发奖名单
    GREEN_USER((byte)4,"绿色通道用户");//绿色通道用户

    private byte value;

    private String text;

    ActivityUserTypeEnum(byte value,String text){
        this.value=value;
        this.text=text;
    }

    public static ActivityUserTypeEnum getByCode(Byte code){
        for(ActivityUserTypeEnum s:ActivityUserTypeEnum.values()){
            if(code.equals(s.getValue())){
                return s;
            }
        }
        return null;
    }
}
